package com.crm.service.impl;

import com.crm.entity.AutoConfig;
import com.crm.mapper.AutoConfigMapper;
import com.crm.service.AutoConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author crm
 * @since 2020-06-05
 */
@Service//表示当前类是service层，也表示把当前类交给spring管理，ioc控制反转，需要时由spring创建对象
public class AutoConfigServiceImpl extends ServiceImpl<AutoConfigMapper, AutoConfig> implements AutoConfigService {

    @Resource
    private AutoConfigMapper autoConfigMapper;
    @Override
    public Integer AutoSwitch() {
        return autoConfigMapper.AutoSwitch();
    }

    @Override
    public Integer AutoSwitchs() {
        return autoConfigMapper.AutoSwitchs();
    }
}
